﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class shop_index_scwd : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            InitComponents();
            BindData();
        }
    }

    #region Web 窗体设计器生成的代码

    protected override void OnLoad(EventArgs e)
    {
        isRequestLogin = true;                                  //是否需要登录
        RequestLoginPage = this.Request.Url.AbsoluteUri;        //获取决对Url
        isAtFramePageLogin = true;                              //是框架页

        //RequestCompetences = Competences.BuildCompetencesList(Competences.index_scwd_Order);//页面权限

        base.OnLoad(e);
    }

    #endregion

    private void InitComponents()
    {
        Utility.InitUltraWebGrid.InitDisplayLayOut(this.uwgMain);
    }

    private void BindData()
    {
        this.uwgMain.DataSource = new DAL.Views.V_Shop_SalesMaster().Open("top 5 *", "CreateShopID=" + _Customer.ShopID + " and SalesType=4 ", "CreateDate desc");
        this.uwgMain.DataBind();
    }

}
